<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加/修改游戏区</title>
<%@ include file="/view/common/tags.jsp"%>
</head>
<style>
	.mainImgPathBox{
		width:auto;
		height:auto;
		margin-top:0;
		border:0;
	}
	.mainImgPathBox  input{
		border:0!important;
	}
</style>
<body>
	<div class="well well_p" >
		<sk:form method="post" cssClass="form-horizontal" id="saveAndUpdateFrom" target="_parent" enctype="multipart/form-data"  action="/hotUpdate/save">
			<div class="form-group">
				<label class="col-xs-2 text-right">APP名称:</label>
	           	<div class="col-xs-5">
	           		<c:if test="${flag==1}">
	           			<sk:select cssClass="form-control select" name="gameIds" id="gameId" value="${tlzsHotUpdate.gameId}" >
		                	<option value="">请选择</option>
							<sk:options  options="${gameNameList}" ></sk:options>
		            	</sk:select>
		            	<input type="hidden" class="input"  name="gameId" value="${tlzsHotUpdate.gameId}" >
	           		</c:if>
	           		<c:if test="${flag==0}">
	           			<sk:select cssClass="form-control select" name="gameId" id="gameId" value="${tlzsHotUpdate.gameId}" onchange="selectDo(this.options[this.options.selectedIndex].value)" >
		                	<option value="">请选择</option>
							<sk:options  options="${gameNameList}" ></sk:options>
		            	</sk:select>
	           		</c:if>
	            </div>
            </div>
			<div class="form-group">
				<label class="col-xs-2 text-right">app版本号:</label>
	           	<div class="col-xs-3 ">
		           	<c:if test="${flag == 1}">
		            	<input type="text" class="form-control"  id="appVersion"  name="appVersion" value="${tlzsHotUpdate.appVersion}" readonly = "readonly">
		            </c:if>
		            <c:if test="${flag == 0}">
		           		<sk:select cssClass="form-control select" name="appVersion" id="appVersion" value="" onchange = "checkPatchVersion()">
		                	<option class="selectGL" value="">请选择</option>
		            	</sk:select>
		            </c:if>
	            </div>
            </div>
            <div class="form-group" >
				<label class="col-xs-2 text-right">上传补丁:</label>
				<div class="col-xs-5">
					<input type="text" name="test" id="test" disabled= "disabled" style="width:240px">
				</div>
				<div class="col-xs-5">
					<c:if test="${not empty tlzsHotUpdate.patchUrl}">
						<div class="mainImgPathBox">
							<a href="${pic}${tlzsHotUpdate.patchUrl}" class="uploadFile">下载文件</a>
						</div>
						<div class="mainImgPathBox">
							<a href="javascript:;" class="a-upload"><input type="file" class="input" id="imgPath" name="imgPath"  onchange="if(this.value)insertTitle(this.value);">点击这里上传文件</a>
						</div>
			    	</c:if>
				    <c:if test="${empty tlzsHotUpdate.patchUrl}">
				    	<div class="mainImgPathBox">
							<a href="javascript:;" class="a-upload"><input type="file" class="input" id="imgPath" name="imgPath"  onchange="if(this.value)insertTitle(this.value);">点击这里上传文件</a>
						</div>
				    </c:if>
			    </div>
			</div>
			<div class="form-group" >
				<label class="col-xs-2 text-right">补丁版本号:</label>
				<div class="col-xs-10">
					<input type="text" class="input" name="patchVersion" id="patchVersion" value="${tlzsHotUpdate.patchVersion}"  placeholder="输入补丁版本号" onblur="checkPatchVersion()">
				<span class="exp_box" style="color:red;">补丁号格式：app版本v1.0.0 则输入100。</span>
				</div>
				
			</div>
			<div class="form-group" >
				<label class="col-xs-2 text-right">补丁说明:</label>
				<div class="col-xs-7">
					<textarea id="patchRemark" name="patchRemark" class="patchRemark" />${tlzsHotUpdate.patchRemark}</textarea>
				</div>
			</div>
			<input type="hidden" id="rowId" name="rowId" value="${tlzsHotUpdate.rowId}">
			<input type="hidden" id="delFlag" name="delFlag" value="${tlzsHotUpdate.delFlag}">
			<input type="hidden" id="patchUrl" name="patchUrl" value="${tlzsHotUpdate.patchUrl}">
			<input type="hidden" id="flag"  value="${flag}">
			<input type="hidden" id="isReCommit" value="0">
		</sk:form>
	</div>
</body>
<%@ include file="/view/common/footer.jsp"%>
<script type="text/javascript" src="${sysManagerV1}/view/js/version/hotUpdate_add.js"></script>
</html>